home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / rayshade / doc / guide / camera.tex < prev    next >
LaTeX Document  |  1992-02-09  |  6.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: camera.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CRLF line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[CRLF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 53 70 65 63 69 66 79 |\chapter|{Specify|
|00000010| 69 6e 67 20 61 20 56 69 | 65 77 7d 0d 0a 0d 0a 57 |ing a Vi|ew}....W|
|00000020| 68 65 6e 20 64 65 73 69 | 67 6e 69 6e 67 20 61 20 |hen desi|gning a |
|00000030| 7b 5c 72 61 79 73 68 61 | 64 65 7d 20 69 6e 70 75 |{\raysha|de} inpu|
|00000040| 74 20 66 69 6c 65 2c 20 | 74 68 65 72 65 20 61 72 |t file, |there ar|
|00000050| 65 20 74 77 6f 20 6d 61 | 69 6e 0d 0a 69 73 73 75 |e two ma|in..issu|
|00000060| 65 73 20 74 68 61 74 20 | 6d 75 73 74 20 62 65 20 |es that |must be |
|00000070| 63 6f 6e 73 69 64 65 72 | 65 64 2e 20 20 54 68 65 |consider|ed. The|
|00000080| 20 66 69 72 73 74 20 61 | 6e 64 20 6d 6f 72 65 20 | first a|nd more |
|00000090| 63 6f 6d 70 6c 65 78 0d | 0a 69 73 20 74 68 65 20 |complex.|.is the |
|000000a0| 73 65 6c 65 63 74 69 6f | 6e 20 6f 66 20 74 68 65 |selectio|n of the|
|000000b0| 20 6f 62 6a 65 63 74 73 | 20 74 6f 20 62 65 20 72 | objects| to be r|
|000000c0| 65 6e 64 65 72 65 64 20 | 61 6e 64 20 74 68 65 20 |endered |and the |
|000000d0| 61 70 70 65 61 72 61 6e | 63 65 73 0d 0a 74 68 65 |appearan|ces..the|
|000000e0| 79 20 73 68 6f 75 6c 64 | 20 62 65 20 61 73 73 69 |y should| be assi|
|000000f0| 67 6e 65 64 2e 20 20 54 | 68 65 20 73 65 63 6f 6e |gned. T|he secon|
|00000100| 64 20 61 6e 64 20 75 73 | 75 61 6c 6c 79 20 65 61 |d and us|ually ea|
|00000110| 73 69 65 72 20 69 73 73 | 75 65 20 69 73 0d 0a 74 |sier iss|ue is..t|
|00000120| 68 65 20 63 68 6f 69 63 | 65 20 6f 66 20 76 69 65 |he choic|e of vie|
|00000130| 77 69 6e 67 20 70 61 72 | 61 6d 65 74 65 72 73 2e |wing par|ameters.|
|00000140| 20 20 54 68 69 73 20 63 | 68 61 70 74 65 72 20 64 | This c|hapter d|
|00000150| 65 61 6c 73 20 77 69 74 | 68 20 74 68 65 0d 0a 6c |eals wit|h the..l|
|00000160| 61 74 74 65 72 20 70 72 | 6f 62 6c 65 6d 3b 20 74 |atter pr|oblem; t|
|00000170| 68 65 20 6d 61 6a 6f 72 | 69 74 79 20 6f 66 20 74 |he major|ity of t|
|00000180| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 68 61 |he follo|wing cha|
|00000190| 70 74 65 72 73 0d 0a 64 | 69 73 63 75 73 73 20 61 |pters..d|iscuss a|
|000001a0| 73 70 65 63 74 73 20 6f | 66 20 6f 62 6a 65 63 74 |spects o|f object|
|000001b0| 73 20 61 6e 64 20 74 68 | 65 69 72 20 61 70 70 65 |s and th|eir appe|
|000001c0| 61 72 61 6e 63 65 73 2e | 0d 0a 0d 0a 7b 5c 52 61 |arances.|....{\Ra|
|000001d0| 79 73 68 61 64 65 7d 20 | 75 73 65 73 20 61 20 63 |yshade} |uses a c|
|000001e0| 61 6d 65 72 61 20 6d 6f | 64 65 6c 20 74 6f 20 64 |amera mo|del to d|
|000001f0| 65 73 63 72 69 62 65 0d | 0a 74 68 65 20 67 65 6f |escribe.|.the geo|
|00000200| 6d 65 74 72 69 63 20 72 | 65 6c 61 74 69 6f 6e 73 |metric r|elations|
|00000210| 68 69 70 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |hip betw|een the |
|00000220| 6f 62 6a 65 63 74 73 20 | 74 6f 20 62 65 20 72 65 |objects |to be re|
|00000230| 6e 64 65 72 65 64 0d 0a | 61 6e 64 20 74 68 65 20 |ndered..|and the |
|00000240| 69 6d 61 67 65 20 74 68 | 61 74 20 69 73 20 70 72 |image th|at is pr|
|00000250| 6f 64 75 63 65 64 2e 20 | 20 54 68 69 73 20 72 65 |oduced. | This re|
|00000260| 6c 61 74 69 6f 6e 73 68 | 69 70 20 64 65 73 63 72 |lationsh|ip descr|
|00000270| 69 62 65 73 0d 0a 61 20 | 70 65 72 73 70 65 63 74 |ibes..a |perspect|
|00000280| 69 76 65 20 70 72 6f 6a | 65 63 74 69 6f 6e 20 66 |ive proj|ection f|
|00000290| 72 6f 6d 20 77 6f 72 6c | 64 20 73 70 61 63 65 20 |rom worl|d space |
|000002a0| 6f 6e 74 6f 20 74 68 65 | 20 69 6d 61 67 65 20 70 |onto the| image p|
|000002b0| 6c 61 6e 65 2e 0d 0a 0d | 0a 54 68 65 20 67 65 6f |lane....|.The geo|
|000002c0| 6d 65 74 72 79 20 6f 66 | 20 74 68 65 20 70 65 72 |metry of| the per|
|000002d0| 73 70 65 63 74 69 76 65 | 20 70 72 6f 6a 65 63 74 |spective| project|
|000002e0| 69 6f 6e 0d 0a 6d 61 79 | 20 62 65 20 74 68 6f 75 |ion..may| be thou|
|000002f0| 67 68 74 20 6f 66 20 61 | 73 20 61 6e 0d 0a 69 6e |ght of a|s an..in|
|00000300| 66 69 6e 69 74 65 20 70 | 79 72 61 6d 69 64 2c 20 |finite p|yramid, |
|00000310| 6b 6e 6f 77 6e 20 61 73 | 20 74 68 65 20 76 69 65 |known as| the vie|
|00000320| 77 69 6e 67 20 7b 5c 65 | 6d 20 66 72 75 73 74 75 |wing {\e|m frustu|
|00000330| 6d 7d 2e 0d 0a 54 68 65 | 20 61 70 65 78 20 6f 66 |m}...The| apex of|
|00000340| 20 74 68 65 20 66 72 75 | 73 74 75 6d 20 69 73 20 | the fru|stum is |
|00000350| 64 65 66 69 6e 65 64 20 | 62 79 20 74 68 65 20 63 |defined |by the c|
|00000360| 61 6d 65 72 61 27 73 20 | 70 6f 73 69 74 69 6f 6e |amera's |position|
|00000370| 2c 0d 0a 61 6e 64 20 74 | 68 65 20 6d 61 69 6e 20 |,..and t|he main |
|00000380| 61 78 69 73 20 6f 66 20 | 74 68 65 20 66 72 75 73 |axis of |the frus|
|00000390| 74 75 6d 20 62 79 20 61 | 20 60 60 6c 6f 6f 6b 27 |tum by a| ``look'|
|000003a0| 27 20 76 65 63 74 6f 72 | 2e 0d 0a 54 68 65 20 66 |' vector|...The f|
|000003b0| 6f 75 72 20 73 69 64 65 | 73 20 6f 66 0d 0a 74 68 |our side|s of..th|
|000003c0| 65 20 70 79 72 61 6d 69 | 64 20 61 72 65 20 64 69 |e pyrami|d are di|
|000003d0| 66 66 65 72 65 6e 74 69 | 61 74 65 64 20 62 79 20 |fferenti|ated by |
|000003e0| 74 68 65 69 72 20 72 65 | 6c 61 74 69 6f 6e 73 68 |their re|lationsh|
|000003f0| 69 70 20 74 6f 20 61 0d | 0a 72 65 66 65 72 65 6e |ip to a.|.referen|
|00000400| 63 65 20 60 60 75 70 27 | 27 20 76 65 63 74 6f 72 |ce ``up'|' vector|
|00000410| 20 66 72 6f 6d 20 74 68 | 65 20 63 61 6d 65 72 61 | from th|e camera|
|00000420| 27 73 20 70 6f 73 69 74 | 69 6f 6e 2e 0d 0a 0d 0a |'s posit|ion.....|
|00000430| 54 68 65 20 69 6d 61 67 | 65 0d 0a 75 6c 74 69 6d |The imag|e..ultim|
|00000440| 61 74 65 6c 79 20 70 72 | 6f 64 75 63 65 64 20 62 |ately pr|oduced b|
|00000450| 79 20 7b 5c 72 61 79 73 | 68 61 64 65 7d 20 6d 61 |y {\rays|hade} ma|
|00000460| 79 20 74 68 65 6e 20 62 | 65 20 74 68 6f 75 67 68 |y then b|e though|
|00000470| 74 20 6f 66 20 61 73 0d | 0a 74 68 65 20 70 72 6f |t of as.|.the pro|
|00000480| 6a 65 63 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 6f |jection |of the o|
|00000490| 62 6a 65 63 74 73 20 63 | 6c 6f 73 65 73 74 20 74 |bjects c|losest t|
|000004a0| 6f 20 74 68 65 20 65 79 | 65 20 6f 6e 74 6f 0d 0a |o the ey|e onto..|
|000004b0| 61 20 72 65 63 74 61 6e | 67 75 6c 61 72 20 73 63 |a rectan|gular sc|
|000004c0| 72 65 65 6e 20 66 6f 72 | 6d 65 64 20 62 79 20 74 |reen for|med by t|
|000004d0| 68 65 20 69 6e 74 65 72 | 73 65 63 74 69 6f 6e 20 |he inter|section |
|000004e0| 6f 66 20 74 68 65 20 70 | 79 72 61 6d 69 64 20 77 |of the p|yramid w|
|000004f0| 69 74 68 0d 0a 61 20 70 | 6c 61 6e 65 20 6f 72 74 |ith..a p|lane ort|
|00000500| 68 6f 67 6f 6e 61 6c 20 | 74 6f 20 74 68 65 20 70 |hogonal |to the p|
|00000510| 79 72 61 6d 69 64 27 73 | 20 61 78 69 73 2e 20 20 |yramid's| axis. |
|00000520| 54 68 65 20 6f 76 65 72 | 61 6c 6c 20 73 68 61 70 |The over|all shap|
|00000530| 65 0d 0a 6f 66 20 74 68 | 65 20 66 72 75 73 74 75 |e..of th|e frustu|
|00000540| 6d 20 28 74 68 65 20 6c | 65 6e 67 74 68 73 20 6f |m (the l|engths o|
|00000550| 66 20 74 68 65 20 74 6f | 70 20 61 6e 64 20 62 6f |f the to|p and bo|
|00000560| 74 74 6f 6d 20 73 69 64 | 65 73 20 63 6f 6d 70 61 |ttom sid|es compa|
|00000570| 72 65 64 0d 0a 74 6f 20 | 6c 65 66 74 20 61 6e 64 |red..to |left and|
|00000580| 20 72 69 67 68 74 29 0d | 0a 69 73 20 64 65 73 63 | right).|.is desc|
|00000590| 72 69 62 65 64 20 62 79 | 20 74 68 65 20 68 6f 72 |ribed by| the hor|
|000005a0| 69 7a 6f 6e 74 61 6c 20 | 61 6e 64 20 76 65 72 74 |izontal |and vert|
|000005b0| 69 63 61 6c 20 66 69 65 | 6c 64 73 0d 0a 6f 66 20 |ical fie|lds..of |
|000005c0| 76 69 65 77 2e 0d 0a 0d | 0a 5c 73 65 63 74 69 6f |view....|.\sectio|
|000005d0| 6e 7b 43 61 6d 65 72 61 | 20 50 6f 73 69 74 69 6f |n{Camera| Positio|
|000005e0| 6e 7d 0d 0a 0d 0a 54 68 | 65 20 74 68 72 65 65 20 |n}....Th|e three |
|000005f0| 62 61 73 69 63 20 63 61 | 6d 65 72 61 20 70 72 6f |basic ca|mera pro|
|00000600| 70 65 72 74 69 65 73 20 | 61 72 65 20 69 74 73 20 |perties |are its |
|00000610| 70 6f 73 69 74 69 6f 6e | 2c 20 74 68 65 20 64 69 |position|, the di|
|00000620| 72 65 63 74 69 6f 6e 0d | 0a 69 6e 20 77 68 69 63 |rection.|.in whic|
|00000630| 68 20 69 74 20 69 73 20 | 70 6f 69 6e 74 69 6e 67 |h it is |pointing|
|00000640| 2c 20 61 6e 64 20 69 74 | 73 20 6f 72 69 65 6e 74 |, and it|s orient|
|00000650| 61 74 69 6f 6e 2e 20 20 | 54 68 65 20 6b 65 79 77 |ation. |The keyw|
|00000660| 6f 72 64 73 20 66 6f 72 | 0d 0a 73 70 65 63 69 66 |ords for|..specif|
|00000670| 79 69 6e 67 20 74 68 65 | 73 65 20 76 61 6c 75 65 |ying the|se value|
|00000680| 73 20 61 72 65 20 64 65 | 73 63 72 69 62 65 64 20 |s are de|scribed |
|00000690| 62 65 6c 6f 77 2e 0d 0a | 54 68 65 20 64 65 66 61 |below...|The defa|
|000006a0| 75 6c 74 20 76 61 6c 75 | 65 73 0d 0a 61 72 65 20 |ult valu|es..are |
|000006b0| 64 65 73 69 67 6e 65 64 | 20 74 6f 20 70 72 6f 76 |designed| to prov|
|000006c0| 69 64 65 20 61 20 72 65 | 61 73 6f 6e 61 62 6c 65 |ide a re|asonable|
|000006d0| 20 76 69 65 77 20 6f 66 | 20 61 20 73 70 68 65 72 | view of| a spher|
|000006e0| 65 20 6f 66 20 72 61 64 | 69 75 73 20 32 0d 0a 6c |e of rad|ius 2..l|
|000006f0| 6f 63 61 74 65 64 20 61 | 74 20 6f 72 69 67 69 6e |ocated a|t origin|
|00000700| 2e 20 20 49 66 20 74 68 | 65 73 65 20 64 65 66 61 |. If th|ese defa|
|00000710| 75 6c 74 20 76 61 6c 75 | 65 73 20 61 72 65 20 75 |ult valu|es are u|
|00000720| 73 65 64 2c 0d 0a 74 68 | 65 20 6f 72 69 67 69 6e |sed,..th|e origin|
|00000730| 20 69 73 20 70 72 6f 6a | 65 63 74 65 64 20 6f 6e | is proj|ected on|
|00000740| 74 6f 20 74 68 65 20 63 | 65 6e 74 65 72 20 6f 66 |to the c|enter of|
|00000750| 20 74 68 65 20 69 6d 61 | 67 65 20 70 6c 61 6e 65 | the ima|ge plane|
|00000760| 2c 20 77 69 74 68 0d 0a | 74 68 65 20 77 6f 72 6c |, with..|the worl|
|00000770| 64 20 24 78 24 20 61 78 | 69 73 20 20 72 75 6e 6e |d $x$ ax|is runn|
|00000780| 69 6e 67 20 6c 65 66 74 | 2d 74 6f 2d 72 69 67 68 |ing left|-to-righ|
|00000790| 74 2c 20 74 68 65 20 24 | 7a 24 20 61 78 69 73 20 |t, the $|z$ axis |
|000007a0| 62 6f 74 74 6f 6d 2d 74 | 6f 2d 74 6f 70 2c 0d 0a |bottom-t|o-top,..|
|000007b0| 61 6e 64 20 74 68 65 20 | 24 79 24 20 61 78 69 73 |and the |$y$ axis|
|000007c0| 20 67 6f 69 6e 67 20 60 | 60 69 6e 74 6f 27 27 20 | going `|`into'' |
|000007d0| 74 68 65 20 73 63 72 65 | 65 6e 2e 0d 0a 0d 0a 5c |the scre|en.....\|
|000007e0| 62 65 67 69 6e 7b 64 65 | 66 6b 65 79 7d 7b 65 79 |begin{de|fkey}{ey|
|000007f0| 65 70 7d 7b 5c 65 76 65 | 63 7b 70 6f 73 7d 7d 0d |ep}{\eve|c{pos}}.|
|00000800| 0a 09 50 6c 61 63 65 20 | 74 68 65 20 76 69 72 74 |..Place |the virt|
|00000810| 75 61 6c 20 63 61 6d 65 | 72 61 20 61 74 20 74 68 |ual came|ra at th|
|00000820| 65 20 67 69 76 65 6e 20 | 70 6f 73 69 74 69 6f 6e |e given |position|
|00000830| 2e 0d 0a 5c 65 6e 64 7b | 64 65 66 6b 65 79 7d 0d |...\end{|defkey}.|
|00000840| 0a 54 68 65 20 64 65 66 | 61 75 6c 74 20 63 61 6d |.The def|ault cam|
|00000850| 65 72 61 20 70 6f 73 69 | 74 69 6f 6e 20 69 73 20 |era posi|tion is |
|00000860| 28 30 2c 20 2d 38 2c 20 | 30 29 2e 0d 0a 0d 0a 5c |(0, -8, |0).....\|
|00000870| 62 65 67 69 6e 7b 64 65 | 66 6b 65 79 7d 7b 6c 6f |begin{de|fkey}{lo|
|00000880| 6f 6b 70 7d 7b 5c 65 76 | 65 63 7b 70 6f 73 7d 7d |okp}{\ev|ec{pos}}|
|00000890| 0d 0a 09 50 6f 69 6e 74 | 20 74 68 65 20 76 69 72 |...Point| the vir|
|000008a0| 74 75 61 6c 20 63 61 6d | 65 72 61 20 74 6f 77 61 |tual cam|era towa|
|000008b0| 72 64 20 74 68 65 20 67 | 69 76 65 6e 20 70 6f 73 |rd the g|iven pos|
|000008c0| 69 74 69 6f 6e 2e 0d 0a | 5c 65 6e 64 7b 64 65 66 |ition...|\end{def|
|000008d0| 6b 65 79 7d 0d 0a 54 68 | 65 20 64 65 66 61 75 6c |key}..Th|e defaul|
|000008e0| 74 20 6c 6f 6f 6b 20 70 | 6f 69 6e 74 20 69 73 20 |t look p|oint is |
|000008f0| 74 68 65 20 6f 72 69 67 | 69 6e 20 28 30 2c 20 30 |the orig|in (0, 0|
|00000900| 2c 20 30 29 2e 20 20 54 | 68 65 20 6c 6f 6f 6b 20 |, 0). T|he look |
|00000910| 70 6f 69 6e 74 0d 0a 61 | 6e 64 20 63 61 6d 65 72 |point..a|nd camer|
|00000920| 61 20 70 6f 73 69 74 69 | 6f 6e 20 6d 75 73 74 20 |a positi|on must |
|00000930| 6e 6f 74 20 62 65 20 63 | 6f 69 6e 63 69 64 65 6e |not be c|oinciden|
|00000940| 74 2e 0d 0a 0d 0a 5c 62 | 65 67 69 6e 7b 64 65 66 |t.....\b|egin{def|
|00000950| 6b 65 79 7d 7b 75 70 7d | 7b 5c 65 76 65 63 7b 64 |key}{up}|{\evec{d|
|00000960| 69 72 65 63 74 69 6f 6e | 7d 7d 0d 0a 09 54 68 65 |irection|}}...The|
|00000970| 20 60 60 75 70 27 27 20 | 76 65 63 74 6f 72 20 66 | ``up'' |vector f|
|00000980| 72 6f 6d 20 74 68 65 20 | 63 61 6d 65 72 61 20 70 |rom the |camera p|
|00000990| 6f 69 6e 74 20 69 73 20 | 73 65 74 20 74 6f 20 74 |oint is |set to t|
|000009a0| 68 65 0d 0a 09 67 69 76 | 65 6e 20 64 69 72 65 63 |he...giv|en direc|
|000009b0| 74 69 6f 6e 2e 0d 0a 5c | 65 6e 64 7b 64 65 66 6b |tion...\|end{defk|
|000009c0| 65 79 7d 0d 0a 54 68 69 | 73 20 75 70 20 76 65 63 |ey}..Thi|s up vec|
|000009d0| 74 6f 72 20 6e 65 65 64 | 20 6e 6f 74 20 62 65 20 |tor need| not be |
|000009e0| 6f 72 74 68 6f 67 6f 6e | 61 6c 20 74 6f 0d 0a 74 |orthogon|al to..t|
|000009f0| 68 65 20 76 69 65 77 20 | 76 65 63 74 6f 72 2c 20 |he view |vector, |
|00000a00| 6e 6f 72 20 6e 65 65 64 | 20 69 74 20 62 65 20 6e |nor need| it be n|
|00000a10| 6f 72 6d 61 6c 69 7a 65 | 64 2e 20 20 54 68 65 20 |ormalize|d. The |
|00000a20| 64 65 66 61 75 6c 74 20 | 75 70 0d 0a 64 69 72 65 |default |up..dire|
|00000a30| 63 74 69 6f 6e 20 69 73 | 20 28 30 2c 20 30 2c 20 |ction is| (0, 0, |
|00000a40| 31 29 2e 0d 0a 0d 0a 41 | 6e 6f 74 68 65 72 20 70 |1).....A|nother p|
|00000a50| 6f 70 75 6c 61 72 20 73 | 74 61 6e 64 61 72 64 20 |opular s|tandard |
|00000a60| 76 69 65 77 69 6e 67 20 | 67 65 6f 6d 65 74 72 79 |viewing |geometry|
|00000a70| 2c 20 77 69 74 68 20 74 | 68 65 20 24 78 24 20 61 |, with t|he $x$ a|
|00000a80| 78 69 73 20 72 75 6e 6e | 69 6e 67 0d 0a 6c 65 66 |xis runn|ing..lef|
|00000a90| 74 2d 74 6f 2d 72 69 67 | 68 74 2c 0d 0a 74 68 65 |t-to-rig|ht,..the|
|00000aa0| 20 24 79 24 20 61 78 69 | 73 20 62 6f 74 74 6f 6d | $y$ axi|s bottom|
|00000ab0| 2d 74 6f 2d 74 6f 70 2c | 20 61 6e 64 20 74 68 65 |-to-top,| and the|
|00000ac0| 20 24 7a 24 20 61 78 69 | 73 20 70 6f 69 6e 74 69 | $z$ axi|s pointi|
|00000ad0| 6e 67 20 6f 75 74 20 6f | 66 20 74 68 65 20 73 63 |ng out o|f the sc|
|00000ae0| 72 65 65 6e 2c 0d 0a 6d | 61 79 20 62 65 20 6f 62 |reen,..m|ay be ob|
|00000af0| 74 61 69 6e 65 64 20 62 | 79 20 73 65 74 74 69 6e |tained b|y settin|
|00000b00| 67 20 74 68 65 20 75 70 | 20 76 65 63 74 6f 72 20 |g the up| vector |
|00000b10| 74 6f 20 28 30 2c 20 31 | 2c 20 30 29 20 61 6e 64 |to (0, 1|, 0) and|
|00000b20| 20 62 79 20 70 6c 61 63 | 69 6e 67 0d 0a 74 68 65 | by plac|ing..the|
|00000b30| 20 63 61 6d 65 72 61 20 | 6f 6e 20 74 68 65 20 70 | camera |on the p|
|00000b40| 6f 73 69 74 69 76 65 20 | 24 7a 24 20 61 78 69 73 |ositive |$z$ axis|
|00000b50| 2e 0d 0a 0d 0a 5c 73 65 | 63 74 69 6f 6e 7b 46 69 |.....\se|ction{Fi|
|00000b60| 65 6c 64 20 6f 66 20 56 | 69 65 77 7d 0d 0a 0d 0a |eld of V|iew}....|
|00000b70| 41 6e 6f 74 68 65 72 20 | 69 6d 70 6f 72 74 61 6e |Another |importan|
|00000b80| 74 20 63 68 6f 69 63 65 | 20 74 6f 20 62 65 20 6d |t choice| to be m|
|00000b90| 61 64 65 20 69 73 20 74 | 68 61 74 20 6f 66 20 74 |ade is t|hat of t|
|00000ba0| 68 65 20 0d 0a 66 69 65 | 6c 64 20 6f 66 20 76 69 |he ..fie|ld of vi|
|00000bb0| 65 77 20 6f 66 20 74 68 | 65 20 63 61 6d 65 72 61 |ew of th|e camera|
|00000bc0| 2e 20 20 54 68 65 20 73 | 69 7a 65 20 6f 66 20 74 |. The s|ize of t|
|00000bd0| 68 69 73 20 66 69 65 6c | 64 20 64 65 73 63 72 69 |his fiel|d descri|
|00000be0| 62 65 73 0d 0a 74 68 65 | 20 61 6e 67 6c 65 73 20 |bes..the| angles |
|00000bf0| 62 65 74 77 65 65 6e 20 | 74 68 65 20 6c 65 66 74 |between |the left|
|00000c00| 20 61 6e 64 20 72 69 67 | 68 74 20 73 69 64 65 73 | and rig|ht sides|
|00000c10| 20 61 6e 64 20 74 6f 70 | 20 61 6e 64 20 62 6f 74 | and top| and bot|
|00000c20| 74 6f 6d 20 73 69 64 65 | 73 0d 0a 6f 66 20 74 68 |tom side|s..of th|
|00000c30| 65 20 66 72 75 73 74 75 | 6d 2e 0d 0a 0d 0a 5c 62 |e frustu|m.....\b|
|00000c40| 65 67 69 6e 7b 64 65 66 | 6b 65 79 7d 7b 66 6f 76 |egin{def|key}{fov|
|00000c50| 7d 7b 7b 5c 65 6d 20 68 | 66 6f 76 7d 20 5b 7b 5c |}{{\em h|fov} [{\|
|00000c60| 65 6d 20 76 66 6f 76 7d | 5d 7d 0d 0a 09 53 70 65 |em vfov}|]}...Spe|
|00000c70| 63 69 66 79 0d 0a 09 74 | 68 65 20 68 6f 72 69 7a |cify...t|he horiz|
|00000c80| 6f 6e 74 61 6c 20 61 6e | 64 20 76 65 72 74 69 63 |ontal an|d vertic|
|00000c90| 61 6c 20 66 69 65 6c 64 | 20 6f 66 20 76 69 65 77 |al field| of view|
|00000ca0| 2c 20 69 6e 20 64 65 67 | 72 65 65 73 2e 0d 0a 5c |, in deg|rees...\|
|00000cb0| 65 6e 64 7b 64 65 66 6b | 65 79 7d 0d 0a 54 68 65 |end{defk|ey}..The|
|00000cc0| 20 64 65 66 61 75 6c 74 | 20 68 6f 72 69 7a 6f 6e | default| horizon|
|00000cd0| 74 61 6c 20 66 69 65 6c | 64 20 6f 66 20 76 69 65 |tal fiel|d of vie|
|00000ce0| 77 20 69 73 20 34 35 20 | 64 65 67 72 65 65 73 2e |w is 45 |degrees.|
|00000cf0| 0d 0a 49 66 20 7b 5c 65 | 6d 20 76 66 6f 76 7d 20 |..If {\e|m vfov} |
|00000d00| 69 73 20 6f 6d 69 74 74 | 65 64 2c 20 61 73 20 69 |is omitt|ed, as i|
|00000d10| 73 20 74 68 65 20 67 65 | 6e 65 72 61 6c 20 70 72 |s the ge|neral pr|
|00000d20| 61 63 74 69 63 65 2c 0d | 0a 74 68 65 20 76 65 72 |actice,.|.the ver|
|00000d30| 74 69 63 61 6c 20 66 69 | 65 6c 64 20 6f 66 20 76 |tical fi|eld of v|
|00000d40| 69 65 77 20 69 73 20 63 | 6f 6d 70 75 74 65 64 20 |iew is c|omputed |
|00000d50| 75 73 69 6e 67 20 74 68 | 65 20 68 6f 72 69 7a 6f |using th|e horizo|
|00000d60| 6e 74 61 6c 0d 0a 66 69 | 65 6c 64 20 6f 66 20 76 |ntal..fi|eld of v|
|00000d70| 69 65 77 2c 20 74 68 65 | 20 6f 75 74 70 75 74 20 |iew, the| output |
|00000d80| 69 6d 61 67 65 20 72 65 | 73 6f 6c 75 74 69 6f 6e |image re|solution|
|00000d90| 2c 20 61 6e 64 20 74 68 | 65 20 61 73 73 75 6d 70 |, and th|e assump|
|00000da0| 74 69 6f 6e 0d 0a 74 68 | 61 74 20 61 20 70 69 78 |tion..th|at a pix|
|00000db0| 65 6c 20 73 61 6d 70 6c | 65 73 20 61 20 73 71 75 |el sampl|es a squ|
|00000dc0| 61 72 65 20 61 72 65 61 | 2e 20 20 54 68 75 73 2c |are area|. Thus,|
|00000dd0| 0d 0a 74 68 65 20 76 61 | 6c 75 65 73 20 70 61 73 |..the va|lues pas|
|00000de0| 73 65 64 20 76 69 61 20 | 74 68 65 0d 0a 7b 5c 74 |sed via |the..{\t|
|00000df0| 74 20 73 63 72 65 65 6e | 7d 20 6b 65 79 77 6f 72 |t screen|} keywor|
|00000e00| 64 20 64 65 66 69 6e 65 | 20 74 68 65 20 73 68 61 |d define| the sha|
|00000e10| 70 65 20 6f 66 20 74 68 | 65 20 66 69 6e 61 6c 20 |pe of th|e final |
|00000e20| 69 6d 61 67 65 2e 0d 0a | 49 66 20 79 6f 75 20 61 |image...|If you a|
|00000e30| 72 65 0d 0a 64 69 73 70 | 6c 61 79 69 6e 67 20 6f |re..disp|laying o|
|00000e40| 6e 20 61 20 6e 6f 6e 2d | 73 71 75 61 72 65 20 70 |n a non-|square p|
|00000e50| 69 78 65 6c 65 64 20 64 | 65 76 69 63 65 2c 0d 0a |ixeled d|evice,..|
|00000e60| 79 6f 75 20 6d 75 73 74 | 20 73 65 74 20 74 68 65 |you must| set the|
|00000e70| 20 76 65 72 74 69 63 61 | 6c 20 66 69 65 6c 64 20 | vertica|l field |
|00000e80| 6f 66 20 76 69 65 77 0d | 0a 74 6f 20 63 6f 6d 70 |of view.|.to comp|
|00000e90| 65 6e 73 61 74 65 20 66 | 6f 72 20 74 68 65 20 60 |ensate f|or the `|
|00000ea0| 60 73 71 75 61 73 68 69 | 6e 67 27 27 20 74 68 61 |`squashi|ng'' tha|
|00000eb0| 74 20 77 69 6c 6c 20 72 | 65 73 75 6c 74 2e 0d 0a |t will r|esult...|
|00000ec0| 0d 0a 5c 73 65 63 74 69 | 6f 6e 7b 44 65 70 74 68 |..\secti|on{Depth|
|00000ed0| 20 6f 66 20 46 69 65 6c | 64 7d 0d 0a 0d 0a 55 6e | of Fiel|d}....Un|
|00000ee0| 64 65 72 20 6d 61 6e 79 | 20 63 69 72 63 75 6d 73 |der many| circums|
|00000ef0| 74 61 6e 63 65 73 2c 0d | 0a 69 74 20 69 73 20 64 |tances,.|.it is d|
|00000f00| 65 73 69 72 61 62 6c 65 | 20 74 6f 20 72 65 6e 64 |esirable| to rend|
|00000f10| 65 72 0d 0a 6f 62 6a 65 | 63 74 73 20 69 6e 20 74 |er..obje|cts in t|
|00000f20| 68 65 20 69 6d 61 67 65 | 20 73 75 63 68 20 74 68 |he image| such th|
|00000f30| 61 74 20 74 68 65 79 20 | 61 72 65 20 69 6e 20 73 |at they |are in s|
|00000f40| 68 61 72 70 0d 0a 66 6f | 63 75 73 20 6f 6e 20 74 |harp..fo|cus on t|
|00000f50| 68 65 20 69 6d 61 67 65 | 20 70 6c 61 6e 65 2e 20 |he image| plane. |
|00000f60| 20 54 68 69 73 20 69 73 | 20 61 63 68 69 65 76 65 | This is| achieve|
|00000f70| 64 20 62 79 20 75 73 69 | 6e 67 20 74 68 65 20 64 |d by usi|ng the d|
|00000f80| 65 66 61 75 6c 74 0d 0a | 60 60 70 69 6e 68 6f 6c |efault..|``pinhol|
|00000f90| 65 27 20 63 61 6d 65 72 | 61 2e 20 20 49 6e 20 74 |e' camer|a. In t|
|00000fa0| 68 69 73 20 6d 6f 64 65 | 2c 20 74 68 65 20 63 61 |his mode|, the ca|
|00000fb0| 6d 65 72 61 27 73 20 61 | 70 65 72 74 75 72 65 20 |mera's a|perture |
|00000fc0| 69 73 20 61 20 73 69 6e | 67 6c 65 0d 0a 70 6f 69 |is a sin|gle..poi|
|00000fd0| 6e 74 2c 20 61 6e 64 20 | 61 6c 6c 20 6c 69 67 68 |nt, and |all ligh|
|00000fe0| 74 20 72 61 79 73 20 61 | 72 65 20 66 6f 63 75 73 |t rays a|re focus|
|00000ff0| 65 64 20 6f 6e 20 74 68 | 65 20 69 6d 61 67 65 20 |ed on th|e image |
|00001000| 70 6c 61 6e 65 2e 0d 0a | 0d 0a 41 6c 74 65 72 6e |plane...|..Altern|
|00001010| 61 74 69 76 65 6c 79 2c | 20 6f 6e 65 20 6d 61 79 |atively,| one may|
|00001020| 20 77 69 64 65 6e 20 74 | 68 65 20 61 70 65 72 74 | widen t|he apert|
|00001030| 75 72 65 20 69 6e 20 6f | 72 64 65 72 20 74 6f 0d |ure in o|rder to.|
|00001040| 0a 73 69 6d 75 6c 61 74 | 65 20 64 65 70 74 68 20 |.simulat|e depth |
|00001050| 6f 66 20 66 69 65 6c 64 | 2e 20 49 6e 20 74 68 69 |of field|. In thi|
|00001060| 73 20 63 61 73 65 2c 20 | 72 61 79 73 20 61 72 65 |s case, |rays are|
|00001070| 20 63 61 73 74 20 66 72 | 6f 6d 20 76 61 72 69 6f | cast fr|om vario|
|00001080| 75 73 20 70 6c 61 63 65 | 73 20 6f 6e 0d 0a 74 68 |us place|s on..th|
|00001090| 65 20 61 70 65 72 74 75 | 72 65 20 64 69 73 6b 20 |e apertu|re disk |
|000010a0| 74 6f 77 61 72 64 73 20 | 61 20 70 6f 69 6e 74 20 |towards |a point |
|000010b0| 77 68 6f 73 65 20 64 69 | 73 74 61 6e 63 65 20 66 |whose di|stance f|
|000010c0| 72 6f 6d 20 74 68 65 0d | 0a 63 61 6d 65 72 61 20 |rom the.|.camera |
|000010d0| 69 73 20 65 71 75 61 6c | 20 74 6f 20 74 68 65 0d |is equal| to the.|
|000010e0| 0a 7b 5c 65 6d 20 66 6f | 63 75 73 20 64 69 73 74 |.{\em fo|cus dist|
|000010f0| 61 6e 63 65 7d 2e 20 20 | 4f 62 6a 65 63 74 73 20 |ance}. |Objects |
|00001100| 74 68 61 74 20 6c 61 79 | 20 69 6e 20 74 68 65 20 |that lay| in the |
|00001110| 66 6f 63 61 6c 20 70 6c | 61 6e 65 20 77 69 6c 6c |focal pl|ane will|
|00001120| 20 62 65 0d 0a 69 6e 20 | 73 68 61 72 70 20 66 6f | be..in |sharp fo|
|00001130| 63 75 73 2e 20 20 54 68 | 65 20 66 61 72 74 68 65 |cus. Th|e farthe|
|00001140| 72 20 61 6e 20 6f 62 6a | 65 63 74 20 69 73 20 66 |r an obj|ect is f|
|00001150| 72 6f 6d 20 74 68 65 20 | 69 6d 61 67 65 20 70 6c |rom the |image pl|
|00001160| 61 6e 65 2c 0d 0a 74 68 | 65 20 6d 6f 72 65 20 6f |ane,..th|e more o|
|00001170| 75 74 2d 6f 66 2d 66 6f | 63 75 73 20 69 74 20 77 |ut-of-fo|cus it w|
|00001180| 69 6c 6c 20 61 70 70 65 | 61 72 20 74 6f 20 62 65 |ill appe|ar to be|
|00001190| 2e 0d 0a 41 20 77 69 64 | 65 72 20 61 70 65 72 74 |...A wid|er apert|
|000011a0| 75 72 65 20 77 69 6c 6c | 20 6c 65 61 64 20 74 6f |ure will| lead to|
|000011b0| 20 61 20 67 72 65 61 74 | 65 72 20 62 6c 75 72 72 | a great|er blurr|
|000011c0| 69 6e 67 20 6f 66 0d 0a | 6f 62 6a 65 63 74 73 20 |ing of..|objects |
|000011d0| 74 68 61 74 20 64 6f 20 | 6e 6f 74 20 6c 61 79 20 |that do |not lay |
|000011e0| 69 6e 20 74 68 65 20 66 | 6f 63 61 6c 20 70 6c 61 |in the f|ocal pla|
|000011f0| 6e 65 2e 0d 0a 57 68 65 | 6e 20 75 73 69 6e 67 20 |ne...Whe|n using |
|00001200| 61 20 6e 6f 6e 2d 7a 65 | 72 6f 20 61 70 65 72 74 |a non-ze|ro apert|
|00001210| 75 72 65 20 72 61 64 69 | 75 73 2c 20 69 74 20 69 |ure radi|us, it i|
|00001220| 73 20 62 65 73 74 20 74 | 6f 20 75 73 65 20 6a 69 |s best t|o use ji|
|00001230| 74 74 65 72 65 64 0d 0a | 73 61 6d 70 6c 69 6e 67 |ttered..|sampling|
|00001240| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 72 65 64 | in orde|r to red|
|00001250| 75 63 65 20 61 6c 69 61 | 73 69 6e 67 2e 0d 0a 0d |uce alia|sing....|
|00001260| 0a 5c 62 65 67 69 6e 7b | 64 65 66 6b 65 79 7d 7b |.\begin{|defkey}{|
|00001270| 61 70 65 72 74 75 72 65 | 7d 7b 7b 5c 65 6d 20 72 |aperture|}{{\em r|
|00001280| 61 64 69 75 73 7d 7d 0d | 0a 09 55 73 65 20 61 6e |adius}}.|..Use an|
|00001290| 20 61 70 65 72 74 75 72 | 65 20 77 69 74 68 20 74 | apertur|e with t|
|000012a0| 68 65 20 67 69 76 65 6e | 20 7b 5c 65 6d 20 72 61 |he given| {\em ra|
|000012b0| 64 69 75 73 7d 2e 0d 0a | 5c 65 6e 64 7b 64 65 66 |dius}...|\end{def|
|000012c0| 6b 65 79 7d 0d 0a 54 68 | 65 20 64 65 66 61 75 6c |key}..Th|e defaul|
|000012d0| 74 20 72 61 64 69 75 73 | 20 69 73 20 7a 65 72 6f |t radius| is zero|
|000012e0| 2c 20 72 65 73 75 6c 74 | 69 6e 67 20 69 6e 20 61 |, result|ing in a|
|000012f0| 20 70 69 6e 68 6f 6c 65 | 20 63 61 6d 65 72 61 20 | pinhole| camera |
|00001300| 6d 6f 64 65 6c 2e 0d 0a | 0d 0a 5c 62 65 67 69 6e |model...|..\begin|
|00001310| 7b 64 65 66 6b 65 79 7d | 7b 66 6f 63 61 6c 64 69 |{defkey}|{focaldi|
|00001320| 73 74 7d 7b 7b 5c 65 6d | 20 64 69 73 74 61 6e 63 |st}{{\em| distanc|
|00001330| 65 7d 7d 0d 0a 09 53 65 | 74 20 74 68 65 20 66 6f |e}}...Se|t the fo|
|00001340| 63 61 6c 20 70 6c 61 6e | 65 20 74 6f 20 62 65 20 |cal plan|e to be |
|00001350| 7b 5c 65 6d 20 64 69 73 | 74 61 6e 63 65 7d 20 75 |{\em dis|tance} u|
|00001360| 6e 69 74 73 20 66 72 6f | 6d 20 74 68 65 20 63 61 |nits fro|m the ca|
|00001370| 6d 65 72 61 2e 0d 0a 5c | 65 6e 64 7b 64 65 66 6b |mera...\|end{defk|
|00001380| 65 79 7d 0d 0a 42 79 20 | 64 65 66 61 75 6c 74 2c |ey}..By |default,|
|00001390| 20 74 68 65 20 66 6f 63 | 61 6c 20 64 69 73 74 61 | the foc|al dista|
|000013a0| 6e 63 65 20 69 73 20 65 | 71 75 61 6c 20 74 6f 20 |nce is e|qual to |
|000013b0| 74 68 65 20 64 69 73 74 | 61 6e 63 65 20 66 72 6f |the dist|ance fro|
|000013c0| 6d 20 74 68 65 0d 0a 63 | 61 6d 65 72 61 20 74 6f |m the..c|amera to|
|000013d0| 20 74 68 65 20 6c 6f 6f | 6b 20 70 6f 69 6e 74 2e | the loo|k point.|
|000013e0| 0d 0a 0d 0a 5c 73 65 63 | 74 69 6f 6e 7b 53 74 65 |....\sec|tion{Ste|
|000013f0| 72 65 6f 20 52 65 6e 64 | 65 72 69 6e 67 7d 0d 0a |reo Rend|ering}..|
|00001400| 0d 0a 50 72 6f 64 75 63 | 69 6e 67 20 61 20 73 74 |..Produc|ing a st|
|00001410| 65 72 65 6f 20 70 61 69 | 72 20 69 73 20 61 20 72 |ereo pai|r is a r|
|00001420| 65 6c 61 74 69 76 65 6c | 79 20 73 69 6d 70 6c 65 |elativel|y simple|
|00001430| 20 70 72 6f 63 65 73 73 | 3b 20 72 61 74 68 65 72 | process|; rather|
|00001440| 20 74 68 61 6e 0d 0a 73 | 69 6d 70 6c 79 20 72 65 | than..s|imply re|
|00001450| 6e 64 65 72 69 6e 67 20 | 61 20 73 69 6e 67 6c 65 |ndering |a single|
|00001460| 20 69 6d 61 67 65 2c 20 | 6f 6e 65 20 63 72 65 61 | image, |one crea|
|00001470| 74 65 73 20 74 77 6f 20 | 72 65 6c 61 74 65 64 20 |tes two |related |
|00001480| 69 6d 61 67 65 73 20 77 | 68 69 63 68 0d 0a 6d 61 |images w|hich..ma|
|00001490| 79 20 74 68 65 6e 20 62 | 65 20 76 69 65 77 65 64 |y then b|e viewed|
|000014a0| 20 6f 6e 20 61 20 73 74 | 65 72 65 6f 20 6d 6f 6e | on a st|ereo mon|
|000014b0| 69 74 6f 72 2c 20 69 6e | 20 61 20 73 74 65 72 65 |itor, in| a stere|
|000014c0| 6f 20 73 6c 69 64 65 20 | 76 69 65 77 65 72 2c 20 |o slide |viewer, |
|000014d0| 6f 72 0d 0a 62 79 20 75 | 73 69 6e 67 20 63 6f 6c |or..by u|sing col|
|000014e0| 6f 72 65 64 20 67 6c 61 | 73 73 65 73 20 61 6e 64 |ored gla|sses and|
|000014f0| 20 61 6e 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 | an appr|opriate |
|00001500| 64 69 73 70 6c 61 79 20 | 66 69 6c 74 65 72 2e 0d |display |filter..|
|00001510| 0a 0d 0a 7b 5c 52 61 79 | 73 68 61 64 65 7d 20 66 |...{\Ray|shade} f|
|00001520| 61 63 69 6c 69 74 61 74 | 65 73 20 74 68 65 20 72 |acilitat|es the r|
|00001530| 65 6e 64 65 72 69 6e 67 | 20 6f 66 20 73 74 65 72 |endering| of ster|
|00001540| 65 6f 20 70 61 69 72 73 | 20 62 79 20 61 6c 6c 6f |eo pairs| by allo|
|00001550| 77 69 6e 67 20 79 6f 75 | 0d 0a 74 6f 20 73 70 65 |wing you|..to spe|
|00001560| 63 69 66 79 20 74 68 65 | 20 64 69 73 74 61 6e 63 |cify the| distanc|
|00001570| 65 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 63 61 |e betwee|n the ca|
|00001580| 6d 65 72 61 20 70 6f 73 | 69 74 69 6f 6e 73 20 75 |mera pos|itions u|
|00001590| 73 65 64 20 69 6e 0d 0a | 63 72 65 61 74 69 6e 67 |sed in..|creating|
|000015a0| 20 74 68 65 20 74 77 6f | 20 69 6d 61 67 65 73 2e | the two| images.|
|000015b0| 20 20 54 68 65 20 63 61 | 6d 65 72 61 20 70 6f 73 | The ca|mera pos|
|000015c0| 69 74 69 6f 6e 20 67 69 | 76 65 6e 20 69 6e 20 74 |ition gi|ven in t|
|000015d0| 68 65 0d 0a 7b 5c 72 61 | 79 73 68 61 64 65 7d 20 |he..{\ra|yshade} |
|000015e0| 69 6e 70 75 74 20 66 69 | 6c 65 0d 0a 64 65 66 69 |input fi|le..defi|
|000015f0| 6e 65 73 0d 0a 74 68 65 | 20 6d 69 64 70 6f 69 6e |nes..the| midpoin|
|00001600| 74 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 74 77 |t betwee|n the tw|
|00001610| 6f 20 63 61 6d 65 72 61 | 20 70 6f 73 69 74 69 6f |o camera| positio|
|00001620| 6e 73 20 75 73 65 64 20 | 74 6f 20 67 65 6e 65 72 |ns used |to gener|
|00001630| 61 74 65 20 74 68 65 0d | 0a 69 6d 61 67 65 73 2e |ate the.|.images.|
|00001640| 0d 0a 47 65 6e 65 72 61 | 6c 6c 79 2c 20 74 68 65 |..Genera|lly, the|
|00001650| 20 72 65 6d 61 69 6e 64 | 65 72 20 6f 66 20 74 68 | remaind|er of th|
|00001660| 65 20 76 69 65 77 69 6e | 67 20 70 61 72 61 6d 65 |e viewin|g parame|
|00001670| 74 65 72 73 20 61 72 65 | 20 6b 65 70 74 20 63 6f |ters are| kept co|
|00001680| 6e 73 74 61 6e 74 2e 0d | 0a 0d 0a 5c 62 65 67 69 |nstant..|...\begi|
|00001690| 6e 7b 64 65 66 6b 65 79 | 7d 7b 65 79 65 73 65 70 |n{defkey|}{eyesep|
|000016a0| 7d 7b 7b 5c 65 6d 20 73 | 65 70 61 72 61 74 69 6f |}{{\em s|eparatio|
|000016b0| 6e 7d 7d 0d 0a 09 53 70 | 65 63 69 66 69 65 73 20 |n}}...Sp|ecifies |
|000016c0| 74 68 65 20 63 61 6d 65 | 72 61 20 73 65 70 61 72 |the came|ra separ|
|000016d0| 61 74 69 6f 6e 20 74 6f | 20 62 65 20 75 73 65 64 |ation to| be used|
|000016e0| 20 69 6e 20 72 65 6e 64 | 65 72 69 6e 67 20 73 74 | in rend|ering st|
|000016f0| 65 72 65 6f 0d 0a 09 70 | 61 69 72 73 2e 0d 0a 5c |ereo...p|airs...\|
|00001700| 65 6e 64 7b 64 65 66 6b | 65 79 7d 0d 0a 54 68 65 |end{defk|ey}..The|
|00001710| 72 65 20 69 73 20 6e 6f | 20 64 65 66 61 75 6c 74 |re is no| default|
|00001720| 20 76 61 6c 75 65 2e 0d | 0a 54 68 65 20 73 65 70 | value..|.The sep|
|00001730| 61 72 61 74 69 6f 6e 20 | 6d 61 79 20 61 6c 73 6f |aration |may also|
|00001740| 20 62 65 20 73 70 65 63 | 69 66 69 65 64 20 6f 6e | be spec|ified on|
|00001750| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|00001760| 65 20 74 68 72 6f 75 67 | 68 0d 0a 74 68 65 20 7b |e throug|h..the {|
|00001770| 5c 65 6d 20 2d 45 7d 20 | 6f 70 74 69 6f 6e 2e 0d |\em -E} |option..|
|00001780| 0a 54 68 65 20 76 69 65 | 77 20 74 6f 20 62 65 20 |.The vie|w to be |
|00001790| 72 65 6e 64 65 72 65 64 | 20 28 6c 65 66 74 20 6f |rendered| (left o|
|000017a0| 72 20 72 69 67 68 74 29 | 0d 0a 6d 75 73 74 20 62 |r right)|..must b|
|000017b0| 65 20 73 70 65 63 69 66 | 69 65 64 20 6f 6e 20 74 |e specif|ied on t|
|000017c0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |he comma|nd line |
|000017d0| 62 79 20 75 73 69 6e 67 | 0d 0a 74 68 65 20 7b 5c |by using|..the {\|
|000017e0| 74 74 20 2d 6c 7d 20 6f | 72 20 7b 5c 74 74 20 2d |tt -l} o|r {\tt -|
|000017f0| 72 7d 20 6f 70 74 69 6f | 6e 73 2e 0d 0a 0d 0a 54 |r} optio|ns.....T|
|00001800| 68 65 72 65 20 61 72 65 | 20 73 65 76 65 72 61 6c |here are| several|
|00001810| 20 74 68 69 6e 67 73 20 | 74 6f 20 6b 65 65 70 20 | things |to keep |
|00001820| 69 6e 20 6d 69 6e 64 20 | 77 68 65 6e 20 67 65 6e |in mind |when gen|
|00001830| 65 72 61 74 69 6e 67 20 | 73 74 65 72 65 6f 0d 0a |erating |stereo..|
|00001840| 70 61 69 72 73 2e 20 20 | 46 69 72 73 74 6c 79 2c |pairs. |Firstly,|
|00001850| 20 74 68 6f 73 65 20 6f | 62 6a 65 63 74 73 20 74 | those o|bjects t|
|00001860| 68 61 74 20 6c 69 65 20 | 69 6e 20 66 72 6f 6d 20 |hat lie |in from |
|00001870| 6f 66 20 74 68 65 20 66 | 6f 63 61 6c 20 70 6c 61 |of the f|ocal pla|
|00001880| 6e 65 20 77 69 6c 6c 0d | 0a 61 70 70 65 61 72 20 |ne will.|.appear |
|00001890| 74 6f 20 70 72 6f 74 72 | 75 64 65 20 66 72 6f 6d |to protr|ude from|
|000018a0| 20 74 68 65 20 73 63 72 | 65 65 6e 20 77 68 65 6e | the scr|een when|
|000018b0| 20 76 69 65 77 65 64 20 | 69 6e 20 73 74 65 72 65 | viewed |in stere|
|000018c0| 6f 2c 20 77 68 69 6c 65 | 20 6f 62 6a 65 63 74 73 |o, while| objects|
|000018d0| 0d 0a 66 61 72 74 68 65 | 72 0d 0a 74 68 61 6e 20 |..farthe|r..than |
|000018e0| 74 68 65 20 66 6f 63 61 | 6c 20 70 6c 61 6e 65 20 |the foca|l plane |
|000018f0| 77 69 6c 6c 20 72 65 63 | 65 64 65 20 69 6e 74 6f |will rec|ede into|
|00001900| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 20 20 41 73 | the scr|een. As|
|00001910| 20 69 74 20 69 73 20 75 | 73 75 61 6c 6c 79 0d 0a | it is u|sually..|
|00001920| 65 61 73 69 65 72 20 74 | 6f 20 6c 6f 6f 6b 20 61 |easier t|o look a|
|00001930| 74 20 73 74 65 72 65 6f | 20 69 6d 61 67 65 73 20 |t stereo| images |
|00001940| 74 68 61 74 20 72 65 63 | 65 64 65 20 69 6e 74 6f |that rec|ede into|
|00001950| 20 74 68 65 20 73 63 72 | 65 65 6e 2c 20 79 6f 75 | the scr|een, you|
|00001960| 20 77 69 6c 6c 0d 0a 75 | 73 75 61 6c 6c 79 0d 0a | will..u|sually..|
|00001970| 77 61 6e 74 20 74 6f 20 | 70 6c 61 63 65 20 74 68 |want to |place th|
|00001980| 65 20 6c 6f 6f 6b 20 70 | 6f 69 6e 74 20 63 6c 6f |e look p|oint clo|
|00001990| 73 65 72 20 74 6f 20 74 | 68 65 20 63 61 6d 65 72 |ser to t|he camer|
|000019a0| 61 20 74 68 61 6e 20 74 | 68 65 20 6f 62 6a 65 63 |a than t|he objec|
|000019b0| 74 0d 0a 6f 66 20 70 72 | 69 6d 61 72 79 20 69 6e |t..of pr|imary in|
|000019c0| 74 65 72 65 73 74 2e 0d | 0a 0d 0a 54 68 65 20 64 |terest..|...The d|
|000019d0| 65 67 72 65 65 20 6f 66 | 20 73 74 65 72 65 6f 20 |egree of| stereo |
|000019e0| 65 66 66 65 63 74 20 69 | 73 20 61 0d 0a 66 75 6e |effect i|s a..fun|
|000019f0| 63 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 63 61 6d |ction of| the cam|
|00001a00| 65 72 61 20 73 65 70 61 | 72 61 74 69 6f 6e 20 61 |era sepa|ration a|
|00001a10| 6e 64 20 74 68 65 20 64 | 69 73 74 61 6e 63 65 20 |nd the d|istance |
|00001a20| 66 72 6f 6d 20 74 68 65 | 20 63 61 6d 65 72 61 0d |from the| camera.|
|00001a30| 0a 74 6f 20 74 68 65 20 | 6c 6f 6f 6b 20 70 6f 69 |.to the |look poi|
|00001a40| 6e 74 2e 20 54 6f 6f 20 | 6c 61 72 67 65 20 61 20 |nt. Too |large a |
|00001a50| 73 65 70 61 72 61 74 69 | 6f 6e 20 77 69 6c 6c 20 |separati|on will |
|00001a60| 72 65 73 75 6c 74 20 69 | 6e 20 61 20 68 79 70 65 |result i|n a hype|
|00001a70| 72 73 74 65 72 65 6f 0d | 0a 65 66 66 65 63 74 20 |rstereo.|.effect |
|00001a80| 74 68 61 74 20 77 69 6c | 6c 20 62 65 20 68 61 72 |that wil|l be har|
|00001a90| 64 20 74 6f 20 72 65 73 | 6f 6c 76 65 2c 20 77 68 |d to res|olve, wh|
|00001aa0| 69 6c 65 20 74 6f 6f 20 | 6c 69 74 74 6c 65 20 61 |ile too |little a|
|00001ab0| 20 76 61 6c 75 65 20 77 | 69 6c 6c 20 72 65 73 75 | value w|ill resu|
|00001ac0| 6c 74 0d 0a 69 6e 20 6e | 6f 20 73 74 65 72 65 6f |lt..in n|o stereo|
|00001ad0| 20 65 66 66 65 63 74 0d | 0a 61 74 20 61 6c 6c 2e | effect.|.at all.|
|00001ae0| 20 20 41 20 73 65 70 61 | 72 61 74 69 6f 6e 20 65 | A sepa|ration e|
|00001af0| 71 75 61 6c 20 74 6f 20 | 6f 6e 65 20 74 65 6e 74 |qual to |one tent|
|00001b00| 68 20 74 68 65 20 64 69 | 73 74 61 6e 63 65 20 66 |h the di|stance f|
|00001b10| 72 6f 6d 20 74 68 65 0d | 0a 63 61 6d 65 72 61 20 |rom the.|.camera |
|00001b20| 74 6f 20 74 68 65 20 6c | 6f 6f 6b 20 70 6f 69 6e |to the l|ook poin|
|00001b30| 74 20 69 73 20 6f 66 74 | 65 6e 20 61 20 67 6f 6f |t is oft|en a goo|
|00001b40| 64 20 63 68 6f 69 63 65 | 2e 0d 0a |d choice|... |
+--------+-------------------------+-------------------------+--------+--------+